<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- <script>
        alert('这是一个警告框')
    </script> -->
    <!-- <script>
        var inp = confirm('这是一个确认框')
        if (inp == true)
            document.write('你选择了确认')
        else
            document.write('你选择了取消')
    </script> -->
    <script>
        var ys = prompt('这是一个提示框');
        if (ys != '')
            document.write('你好' + ys)
    </script> 
</body>
</html>